package com.dr.service.impl;

import com.dr.mapper.DeptMapper;
import com.dr.pojo.Dept;
import com.dr.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("DeptService")
@Transactional
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper mapper;

    @Override
    public List<Dept> findDeptList() {
        return mapper.findDeptList();
    }
}
